//
//  ScrollViewBoot.swift
//  SwiftUIWidgetDemo
//
//  Created by alanzhangg on 2023/7/12.
//

import SwiftUI

struct ScrollViewBoot: View {
    var body: some View {
        ScrollView {
            LazyVStack{
                ForEach(0..<50) { index in
                    ScrollView(.horizontal) {
                        LazyHStack{
                            ForEach(0..<10) { _ in
                                RoundedRectangle(cornerRadius: 25.0)
                                    .fill(.white)
                                    .frame(width: 200, height: 150)
                                    .shadow(radius: 10)
                                    .padding()
                            }
                            
                        }
                    }
                }
            }
        }
        .scrollIndicators(.visible)
    }
}

#Preview {
    ScrollViewBoot()
}
